<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>人事报表</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-store, must-revalidate">
    <meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">
    <meta http-equiv="expires" content="-1">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="/dist/img/icon.png" type="image/x-icon">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="/dist/plugins/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/dist/plugins/select2/select2.min.css">
    <!--字体-->
    <link rel="stylesheet" href="/dist/css/font-awesome.min.css">
    <!--图标-->
    <link rel="stylesheet" href="/dist/css/ionicons.min.css">
    <!--OA主样式-->
    <link rel="stylesheet" href="/dist/css/OA.min.css?t=e9c5bb62">
    <link rel="stylesheet" href="/dist/css/skins/OA-skins.min.css?t=66b457d6">
    <style>
        .content .select2 {
            margin-bottom: 10px !important;
        }

        .content .area {
            display: none;
            background-color: #F4F5F5;
        }

        .content .area td {
            border-style: dashed;
        }

        .content .area td.region {
            font-weight: 100;

        }

        .content td.region {
            color: #489EF1;;
            cursor: pointer;
            text-align: center;
            font-weight: bold;
        }

        .content td span.empty {
            color: #cbcbcd;
        }


    </style>
</head>
<body>
<section class="content" id="app">
    <table class="table table-hover table-bordered text-center">
        <thead>
        <tr>
            <th rowspan="2" style="width: 90px;">公司</th>
            <th rowspan="2" style="width: 60px;">销售部</th>
            <th rowspan="2" style="width: 60px;">大客</br>户部</th>
            <th rowspan="2" style="width: 60px;">服务部</th>
            <th rowspan="2" style="width: 60px;">财务部</th>
            <th rowspan="2" style="width: 60px;">研发部</th>
            <th rowspan="2" style="width: 60px;">技术部</th>
            <th rowspan="2" style="width: 60px;">检测</br>客服</th>
            <th rowspan="2" style="width: 60px;">总计</th>
            <th colspan="3" style="width: 156px;">大客户经理</th>
            <th colspan="3" style="width: 156px;">大区经理</th>
            <th colspan="3" style="width: 156px;">区域经理</th>
        </tr>
        <tr>
            <th style="width: 52px;">标配</th>
            <th style="width: 52px;">在职</th>
            <th style="width: 52px;">空缺</th>
            <th style="width: 52px;">标配</th>
            <th style="width: 52px;">在职</th>
            <th style="width: 52px;">空缺</th>
            <th style="width: 52px;">标配</th>
            <th style="width: 52px;">在职</th>
            <th style="width: 52px;">空缺</th>
        </tr>
        <tr v-for="(item,i) in list">
            <td class="region" @click="gotoDetail('1','look')">江苏瀛丰</td>
            <td>{{item.item1}}</td>
            <td>{{item.item2}}</td>
            <td>{{item.item3}}</td>
            <td>{{item.item4}}</td>
            <td>{{item.item5}}</td>
            <td>{{item.item6}}</td>
            <td>{{item.item7}}</td>
            <td>{{item.item8}}</td>
            <td>{{item.item9}}</td>
            <td>{{item.item10}}</td>
            <td>{{item.item11}}</td>
            <td>{{item.item12}}</td>
            <td>{{item.item13}}</td>
            <td>{{item.item14}}</td>
            <td>{{item.item15}}</td>
            <td>{{item.item16}}</td>
            <td>{{item.item17}}</td>

        </tr>
        <tr class="total">
            <td style="font-weight: bold;">合计</td>
            <td v-for="i in 17">{{i}}</td>
        </tr>
        </thead>
        <tbody>
        </tbody>
    </table>
</section>
</body>
<script src="https://file.ggxqce.com/web/jquery-2.2.3.min.js"></script>
<!--插件JS-->
<script src="https://file.ggxqce.com/web/bootstrap.min.js"></script>
<!--框架已定义 JS-->
<script src="/dist/js/app_iframe.js?t=0b5caf39"></script>
<!--oa自定义  JS-->
<script src="/dist/js/oa.js?t=0c4d95a9"></script>
<script type="text/javascript" src="/dist/plugins/lhgdialog/lhgdialog.min.js?self=true"></script>
<script src="https://file.ggxqce.com/web/vue.min.js"></script>
<script src="/dist/plugins/select2/select2.full.min.js"></script>
<script type="text/javascript">
    var app = new Vue({
        el: '#app',
        data: {
            list: [{
                "item1": 1,
                "item2": 2,
                "item3": 3,
                "item4": 4,
                "item5": 5,
                "item6": 6,
                "item7": 7,
                "item8": 8,
                "item9": 8,
                "item10": 11,
                "item11": 11,
                "item12": 12,
                "item13": 13,
                "item14": 14,
                "item15": 15,
                "item16": 16,
                "item17": 17
            },
                {
                    "item1": 1,
                    "item2": 2,
                    "item3": 3,
                    "item4": 4,
                    "item5": 5,
                    "item6": 6,
                    "item7": 7,
                    "item8": 8,
                    "item9": 8,
                    "item10": 11,
                    "item11": 11,
                    "item12": 12,
                    "item13": 13,
                    "item14": 14,
                    "item15": 15,
                    "item16": 16,
                    "item17": 17
                },
                {
                    "item1": 1,
                    "item2": 2,
                    "item3": 3,
                    "item4": 4,
                    "item5": 5,
                    "item6": 6,
                    "item7": 7,
                    "item8": 8,
                    "item9": 8,
                    "item10": 11,
                    "item11": 11,
                    "item12": 12,
                    "item13": 13,
                    "item14": 14,
                    "item15": 15,
                    "item16": 16,
                    "item17": 17
                }],
            total: []
        },
        methods: {
            initTotal: function () {
                var i = 0;
                var that=this;
                this.list.forEach(function(item) {
                    console.log(item);
//                    hash[name] ? that.total[hash[name] - 1].id.push(item.id) : hash[name] = ++i && that.total.push({
//                        id: [item.id],
//                        name: name,
//                        type: item.type
//                    })

                });
            },
            gotoDetail: function (id, pageType) {
                $.dialog({
                    content: 'url:reportDetail.html?id=' + id + '&pageType=' + pageType + "&t=" + new Date(),
                    title: '人事报表（二级）',
                    width: 660,
                    height: 536,
                    max: true,
                    min: true,
                    lock: true
                });
            }
        },
        mounted:function () {
            var that = this;
            that.initTotal();
        }
    })
    ;
</script>
</html>